import { TJshortcuts } from '@/utils/config'
import { translate } from '@/utils/i18n'
export const queryFormConfig = {
  formItems: [
    {
      filed: 'orderNo',
      type: 'input',
      label: translate('orderId'),
      placeholder: translate('qsr'),
      clearable: true
    },
    {
      filed: 'memberInfo',
      type: 'input',
      label: translate('memberInfo'),
      placeholder: translate('hy2'),
      clearable: true
    },
    {
      filed: 'dates',
      label: translate('createTime'),
      type: 'daterange',
      pickerOptions: {
        shortcuts: TJshortcuts
      }
    },
    {
      filed: 'channel',
      type: 'select',
      label: translate('czqd'),
      placeholder: translate('qxz'),
      clearable: true,
      options: [
        { value: '01', label: translate('miniduan') },
        { value: '02', label: translate('cgpcd') }
      ]
    },
    {
      filed: 'payStatus',
      type: 'select',
      label: translate('orderStatus'),
      placeholder: translate('orderStatusplace'),
      clearable: true,
      labelCode: 'name',
      options: [
      ]
    },
    {
      filed: 'cardType',
      type: 'select',
      label: translate('hyklx'),
      placeholder: translate('qxz'),
      options: []
    },
    {
      filed: 'orderType',
      type: 'select',
      label: translate('orderType'),
      placeholder: translate('qxz'),
      options: [
        { value: '01', label: translate('hycz') },
        { value: '05', label: translate('hykk') }
      ]
    },
    {
      filed: 'creator',
      type: 'input',
      label: translate('operatorNick'),
      placeholder: translate('operatorNickPlace'),
      clearable: true
    }
  ],
  online: true
}
